FROM       centos:centos7
RUN yum install -y \
  curl tar createrepo \
  && yum clean all

RUN cd /var/tmp \
  && curl --fail --silent --location --retry 3 -O \
  --header "Cookie: oraclelicense=accept-securebackup-cookie; " \
  http://download.oracle.com/otn-pub/java/jdk/8u73-b02/jdk-8u73-linux-x64.rpm \
  && rpm -ivh jdk-8u73-linux-x64.rpm \
  && rm -rf jdk-8u73-linux-x64.rpm

